package com.wp.rcm.mapper;
import com.wp.rcm.pojo.Chance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChanceMapper{

    public int count(@Param("custName") String custName, @Param("chcDesc")String chcDesc);

    public List<Chance> findAll(@Param("custName") String custName, @Param("chcDesc")String chcDesc,
     @Param("offset") Integer offset,@Param("pageSize") Integer pageSize);


    // 删除信息
    public int delete(Integer chcId);


    // 添加信息
    public int insert(Chance chance);

    // 根据编号查询
    public Chance findByChcId(Integer chcId);

    // 修改信息
    public int update(Chance chance);

}
